package main;

import java.awt.Rectangle;
import java.util.Observable;

import javax.swing.ListSelectionModel;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import aisLogic.Module;

public class AISSelectionListener implements ListSelectionListener {

	public void valueChanged(ListSelectionEvent arg0) {
		ListSelectionModel lsm = (ListSelectionModel)arg0.getSource();
		if(arg0.getValueIsAdjusting()){
			return;
		}
		AthenaMain.uinterface.moduleScrollPane.getTable().moduleSelected(lsm.getMinSelectionIndex());
	}
}
